Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib

Contributions

XML Source

<?xml version="1.0"?>

<component
  name="org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib">

  <require>org.nuxeo.ecm.platform.notification.service.NotificationContrib</require>
  
  <extension
    target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="notifications">

    <notification name="Task assigned" enabled="false" >
      <event name="workflowTaskAssigned"/>
    </notification>
    <notification name="Task assigned" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Task Assigned for ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskAssigned"/>
    </notification>
    
   <notification name="Task reassigned" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Task Reassigned on ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskReassigned"/>
    </notification>

   <notification name="Task delegated" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskDelegated"  subject="Task Delegated on ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskDelegated"/>
    </notification>
    
  </extension>

</component>